.class Lcom/estrongs/android/pop/app/imageviewer/d$d;
.super Ljava/lang/Object;
.source "ImageLoader.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/imageviewer/d;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "d"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/imageviewer/d;


# direct methods
.method private constructor <init>(Lcom/estrongs/android/pop/app/imageviewer/d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/imageviewer/d$d;->a:Lcom/estrongs/android/pop/app/imageviewer/d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/estrongs/android/pop/app/imageviewer/d;Lcom/estrongs/android/pop/app/imageviewer/d$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/imageviewer/d$d;-><init>(Lcom/estrongs/android/pop/app/imageviewer/d;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    const/16 v0, 0xa

    .line 1
    invoke-static {v0}, Landroid/os/Process;->setThreadPriority(I)V

    .line 2
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/imageviewer/d$d;->a:Lcom/estrongs/android/pop/app/imageviewer/d;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/imageviewer/d;->a(Lcom/estrongs/android/pop/app/imageviewer/d;)Ljava/util/ArrayList;

    move-result-object v0

    monitor-enter v0

    .line 3
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/d$d;->a:Lcom/estrongs/android/pop/app/imageviewer/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/imageviewer/d;->b(Lcom/estrongs/android/pop/app/imageviewer/d;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 4
    monitor-exit v0

    return-void

    .line 5
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/d$d;->a:Lcom/estrongs/android/pop/app/imageviewer/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/imageviewer/d;->a(Lcom/estrongs/android/pop/app/imageviewer/d;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_2

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/d$d;->a:Lcom/estrongs/android/pop/app/imageviewer/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/imageviewer/d;->a(Lcom/estrongs/android/pop/app/imageviewer/d;)Ljava/util/ArrayList;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/app/imageviewer/d$c;

    .line 7
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v0, 0x0

    .line 8
    :try_start_1
    iget-object v2, p0, Lcom/estrongs/android/pop/app/imageviewer/d$d;->a:Lcom/estrongs/android/pop/app/imageviewer/d;

    iget-object v3, v1, Lcom/estrongs/android/pop/app/imageviewer/d$c;->a:Les/cm;

    invoke-virtual {v2, v3}, Lcom/estrongs/android/pop/app/imageviewer/d;->a(Les/cm;)Landroid/graphics/Bitmap;

    move-result-object v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v2

    .line 9
    invoke-virtual {v2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 10
    :goto_1
    iget-object v2, v1, Lcom/estrongs/android/pop/app/imageviewer/d$c;->b:Lcom/estrongs/android/pop/app/imageviewer/d$b;

    if-eqz v2, :cond_0

    .line 11
    iget-object v1, v1, Lcom/estrongs/android/pop/app/imageviewer/d$c;->a:Les/cm;

    invoke-interface {v2, v1, v0}, Lcom/estrongs/android/pop/app/imageviewer/d$b;->a(Les/cm;Landroid/graphics/Bitmap;)V

    goto :goto_0

    .line 12
    :cond_2
    :try_start_2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/imageviewer/d$d;->a:Lcom/estrongs/android/pop/app/imageviewer/d;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/imageviewer/d;->a(Lcom/estrongs/android/pop/app/imageviewer/d;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->wait()V
    :try_end_2
    .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 13
    :catch_0
    :try_start_3
    monitor-exit v0

    goto :goto_0

    :catchall_1
    move-exception v1

    .line 14
    monitor-exit v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    goto :goto_3

    :goto_2
    throw v1

    :goto_3
    goto :goto_2
.end method
